import Vue from 'vue'
import App from './App.vue'
import router from './router'
import settings from "./settings"
import chalk from "./assets/chalk.json"
import dark from "./assets/dark.json"
import purple from "./assets/purple-passion.json"
import west from "./assets/westeros.json"
import topic from "./assets/topic";
import topic_ from "./assets/topic_";
import test from "./assets/test";
import author from "./assets/author"

Vue.config.productionTip = false
Vue.prototype.$settings = settings;
Vue.prototype.$topic = topic;
Vue.prototype.$topic_ = topic_;
Vue.prototype.$test = test;
Vue.prototype.$author = author;

//  element-ui配置
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

import axios from "axios"

axios.defaults.withCredentials = false;
Vue.prototype.$axios = axios;    //挂载

// 引入vuex
import store from './store/index';

// 粒子背景
import VueParticles from 'vue-particles'

Vue.use(VueParticles)

// 引入echarts
import * as echarts from 'echarts'

Vue.prototype.$echarts = echarts
echarts.registerTheme('chalk', chalk)
echarts.registerTheme('dark', dark)
echarts.registerTheme('purple', purple)
echarts.registerTheme('west', west)
new Vue({
    router,
    store,
    render: function (h) {
        return h(App)
    }
}).$mount('#app')
